package org.example.zuoye.entity;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * 
 * @TableName doctor
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ContentRowHeight(value = 25) // 内容行高
@ColumnWidth(value = 20) // 列宽
public class Doctor implements Serializable {
    /**
     * 医生ID
     */
    @ExcelProperty(value = {"医生ID"},index = 0)
    private Integer docId;

    /**
     * 姓名
     */
    @ExcelProperty(value = {"医生姓名"},index = 1)
    private String name;

    /**
     * 电话
     */
    @ExcelProperty(value = {"医生电话"},index = 2)
    private String phone;

    /**
     * 微信
     */
    @ExcelProperty(value = {"微信"},index = 3)
    private String wechat;

    /**
     * 介绍
     */
    @ExcelProperty(value = {"介绍"},index = 4)
    private String recomm;

    /**
     * 照片
     */
    @ExcelProperty(value = {"照片"},index = 8)
    private String photo;

    /**
     * 职位
     */
    @ExcelProperty(value = {"职位"},index = 5)
    private String position;

    /**
     * 入院时间
     */
    @ExcelProperty(value = {"任职时间"},index = 6)
    @JsonFormat( pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat( pattern = "yyyy-MM-dd")
    private Date admissionTime;

    /**
     * 科室
     */
    @ExcelProperty(value = {"所在科室"},index = 7)
    private String department;


}